package com.market.plus.core.dto;

import com.googlecode.simpleobjectassembler.annotation.EntityDto;

@EntityDto(id = "id")
public class ParticipantDto {

   private Long id;

   private CityDto city;

   private AvatarDto avatar;

   private String firstName;

   private String lastName;

   private String nickname;

   private String address;

   private String zipcode;

   private Integer status;

   private UserInfoDto userInfo;

   private String guid;

   public Long getId() {
      return id;
   }

   public void setId(Long id) {
      this.id = id;
   }

   public CityDto getCity() {
      return city;
   }

   public void setCity(CityDto city) {
      this.city = city;
   }

   public AvatarDto getAvatar() {
      return avatar;
   }

   public void setAvatar(AvatarDto avatar) {
      this.avatar = avatar;
   }

   public String getFirstName() {
      return firstName;
   }

   public void setFirstName(String firstName) {
      this.firstName = firstName;
   }

   public String getLastName() {
      return lastName;
   }

   public void setLastName(String lastName) {
      this.lastName = lastName;
   }

   public String getNickname() {
      return nickname;
   }

   public void setNickname(String nickname) {
      this.nickname = nickname;
   }

   public String getAddress() {
      return address;
   }

   public void setAddress(String address) {
      this.address = address;
   }

   public String getZipcode() {
      return zipcode;
   }

   public void setZipcode(String zipcode) {
      this.zipcode = zipcode;
   }

   public Integer getStatus() {
      return status;
   }

   public void setStatus(Integer status) {
      this.status = status;
   }

   public UserInfoDto getUserInfo() {
      return userInfo;
   }

   public void setUserInfo(UserInfoDto userInfo) {
      this.userInfo = userInfo;
   }

   public String getGuid() {
      return guid;
   }

   public void setGuid(String guid) {
      this.guid = guid;
   }

   @Override
   public boolean equals(Object obj) {
      ParticipantDto classDefCompare = (ParticipantDto) obj;
      if (this.getId().longValue() == classDefCompare.getId().longValue()) {
         return true;
      }
      return false;
   }
}
